jQuery(function($) {
	user.select.init({userId:$("#user_list_id").val()});
})
var user= {
	select: {
	        init:function (params) {
	            var path=$("#context_hidden_id").val();
	            var user=params['userId'];
	            $.ajax({
	                type:"get",
	                url:path+"/employee/queryList",
	                dataType:"json",
	                success:function(result){
	                    for (var i=0;i<result.length;i++){
	                        var label=result[i].fullName;
	                        if (label==user){
	                            $("#user-select").append("<option value='"+label+"' selected='selected'>"+label+"</option>")
	                        }else{
	                        	$("#user-select").append("<option value='"+label+"'>"+label+"</option>")
	                        }
	                    }
	                    $(".user-chosen-select").chosen();
	                }
	            });
	        }
	    }
	}